﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <%
        var controllerName="EmailHelp";
        using (Html.BeginForm("Index",controllerName,FormMethod.Post,null))
        { %>
    <div>

        <%
            bool success = ViewBag.Success != null && Convert.ToBoolean(ViewBag.IsSuccess);
            if (success)
          { 
        %>
        发送成功！
        <%
          }
          else
          {
        %>
        <%if (ViewBag.ErrorMsg != null)
          { %>
        <div>
            <%=ViewBag.ErrorMsg %>
        </div>
        <%} %>
        姓:<input name="LastName" />
        名:<input name="FirstName" />
        邮件地址:<input name="email" />
        <input type="submit" value="发送邮件" />
        <%
          } %>
    </div>
    <%} %>
</body>
</html>
